import http from '../http'
function save_carreport(data) {
    let url = '';
    //#ifdef H5
    url = `/mes-api/mes/car_report/save`;
    //#endif
    //#ifdef APP-PLUS
    url = `${import.meta.env.VITE_APP_AXIOS_BASE_URL}/mes-api/mes/car_report/save`
    //#endif
    return http.post(url, data)
}

function getsingle(id) {
    let url = '';
    //#ifdef H5
    url = `/mes-api/mes/car_report/single?id=${id}`;
    //#endif
    //#ifdef APP-PLUS
    url = `${import.meta.env.VITE_APP_AXIOS_BASE_URL}/mes-api/mes/car_report/single?id=${id}`
    //#endif
    return http.get(url)
}

function getlist(data) {
    let url = '';
    //#ifdef H5
    url = `/yewu11/v1/orderScoreResult/queryTournamentScoreResult`;
    //#endif
    //#ifdef APP-PLUS
    url = `${import.meta.env.VITE_APP_AXIOS_BASE_URL}/yewu11/v1/orderScoreResult/queryTournamentScoreResult`
    //#endif
    return http.post(url, data)
}



export default {

    save_carreport,
    getsingle,
    getlist,

}
